跳到主要内容

视频转文

OpenAPI Specification

openapi: 3.0.1
info:
title: ''
description: ''
version: 1.0.0
paths:
/v1beta/models/gemini-2.5-flash:generateContent:
post:
summary: 视频转文
deprecated: false
description: ''
tags:
- 模型接口/Google Gemini/Google Gemini接口
parameters:
- name: Accept
in: header
description: ''
required: true
example: application/json
schema:
type: string
default: application/json
- name: Authorization
in: header
description: ''
required: true
example: sk-
schema:
type: string
default: sk-
- name: Content-Type
in: header
description: ''
required: true
example: application/json
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties: {}
example:
contents:
- role: user
parts:
- text: 关于图片,写一个关于魔法背包的故事
- inline_data:
mime_type: video/mp4
data: AA。。。。。。
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties: {}
example:
candidates:
- content:
role: model
parts:
- text: The video......
finishReason: STOP
index: 0
safetyRatings: null
promptFeedback:
safetyRatings: null
usageMetadata:
promptTokenCount: 28322
candidatesTokenCount: 829
totalTokenCount: 30661
thoughtsTokenCount: 1510
promptTokensDetails:
- modality: TEXT
tokenCount: 11
- modality: VIDEO
tokenCount: 25248
- modality: AUDIO
tokenCount: 3063
headers: {}
x-apifox-name: 成功
security: []
x-apifox-folder: 模型接口/Google Gemini/Google Gemini接口
x-apifox-status: released
x-run-in-apifox: https://app.apifox.com/web/project/5503894/apis/api-324713258-run
components:
schemas: {}
securitySchemes: {}
servers:
- url: '{{base_url}}'
description: 测试环境
- url: https://newapi.eronmind.com
description: 正式环境
security: []